public class Main {
    public static void main(String[] args) {
        IgoChessmanFactory factory = new IgoChessmanFactory();
        IgoChessman blackChessman = factory.getChessman("Black");
        IgoChessman whiteChessman = factory.getChessman("White");
        blackChessman.display(); // 显示黑色棋子
        whiteChessman.display(); // 显示白色棋子

        System.out.println(blackChessman == factory.getChessman("Black"));
        System.out.println(whiteChessman == factory.getChessman("White"));
    }
}